hi friends. i problem to show image in block.
i create a custom template for block Newest products:
and create files in:
templates/addons/my_changes/blocks/products/custom_item.tpl:
{** block-description:new_product **} {if $block.properties.hide_add_to_cart_button == "Y"} {assign var="_show_add_to_cart" value=false} {else} {assign var="_show_add_to_cart" value=true} {/if} {assign var="_show_name" value="true"} {include file="addons/my_changes/blocks/product_list_templates/new-product-grid.tpl" products=$items no_sorting="Y" no_pagination="Y" obj_prefix="`$block.block_id`000" show_add_to_cart=$_show_add_to_cart}
templates/addons/my_changes/blocks/product_list_templates/new-product-grid.tpl:
{** template-description:new-product-grid **}{include file=“addons/my_changes/blocks/list_templates/new-product-grid.tpl”
show_name=true
show_sku=false
show_price=true
show_old_price=true
show_clean_price=true
show_add_to_cart=$show_add_to_cart|default:true
but_role=“action”
hide_form=true
hide_qty_label=true
show_product_labels=false
show_discount_label=false
show_shipping_label=false
}
templates/addons/my_changes/blocks/list_templates/new-product-grid.tpl:
{if $products}{script src="js/tygh/exceptions.js"} {if !$no_pagination} {include file="common/pagination.tpl"} {/if} {if !$no_sorting} {include file="views/products/components/sorting.tpl"} {/if} {assign var="image_width" value=$image_width|default:278} {assign var="image_height" value=$image_height|default:173}
{foreach from=$products item="product" key="key" name="products"} {assign var="obj_id" value=$product.product_id} {assign var="obj_id_prefix" value="`$obj_prefix``$product.product_id`"} {include file="common/product_data.tpl" product=$product} {hook name="products:product_compact_list"}{/hook} {/foreach}{if !$no_pagination}
{include file=“common/pagination.tpl” force_ajax=$force_ajax}
{/if}{/if}
but not show image:
please help me. tanx.